
const MailServer = require('../app/services/mail');
const host = 'smtp.exmail.qq.com';
const user = 'xiongmao@huanleguang.com';
const pass = '@Aixrslwh1993';
const mail = new MailServer({
    host: host,
    user: user,
    pass: pass
});
describe('邮件', () => {
    it('发邮件', () => {
        return mail.sendMail({
            to: '937257166@qq.com',
            subject: '邮件测试',
            html: 'hello world'
        }).then((res) => {
            res.accepted[0].should.to.equal('937257166@qq.com');
        });
    });
});
